/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package practicasUnidad1;

/**
 *
 * @author Lab
 */


/**
 *
 * @author Lab
 */
import java.util.*;
public class formula{

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        double x, a, b, c, x1;
        Scanner sc= new Scanner(System.in);
        System.out.println("Introduce un puño de variables");
        System.out.println("a:");
        a=sc.nextInt();
        System.out.println("b:");
        b=sc.nextInt();
        System.out.println("c:");
        c=sc.nextInt();
       x=(-b+(Math.sqrt(Math.pow(b, 2)-4*a*c)))/2*a;
        System.out.println(x);
        x1=(-b-(Math.sqrt(Math.pow(b, 2)-4*a*c)))/2*a;
        System.out.println(x1);
    }

}
